Commit
81ea00838c6 ("efi_loader: PSCI reset and shutdown") put the SMCCC
assembly code into the efi specific code section. This is wrong when we
do not have EFI_LOADER enabled, as that strips efi runtime sections from
the output binary
Reported-by: Michal Simek <[email protected]>
Reported-by: Siva Durga Prasad Paladugu <[email protected]>
Tested-by: Michal Simek <[email protected]>
Fixes: 81ea00838c6 ("efi_loader: PSCI reset and shutdown")
Signed-off-by: Alexander Graf <[email protected]>
#include <asm/opcodes-sec.h>
#include <asm/opcodes-virt.h>
+#ifdef CONFIG_EFI_LOADER
.section .text.efi_runtime
+#endif
#define UNWIND(x...)
/*
#include <linux/arm-smccc.h>
#include <generated/asm-offsets.h>
+#ifdef CONFIG_EFI_LOADER
.section .text.efi_runtime
+#endif
.macro SMCCC instr
.cfi_startproc